package com.lx.design.demo.ddd3.oop.player;

import com.lx.design.demo.ddd3.oop.monster.Monster;
import com.lx.design.demo.ddd3.oop.weapon.Weapon;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author lx
 * @date 2021/4/21 16:03
 */
public abstract class Player {
    @Getter
    @Setter
    public Weapon weapon;
    @Setter
    @Getter
    public String name;
    public void attack(Monster monster){
        monster.receiveDamageBy(weapon,this);
    }
}
